using System.Collections;
using System.Collections.Generic;
using cmd;
using UnityEngine;

//TODO 仓库
public class FishNet : FishTool
{
    protected override void HandleValidCollision(Fish fishMonobehavior)
    {
        //获取特定属性并保存
        FishSaveData capturedFish = new FishSaveData
        {
            //Id = fishMonobehavior.id,
            Name = fishMonobehavior.fishName,
            MaxValue = fishMonobehavior.fishUnitValue * fishMonobehavior.fishBaseWeight
            //todo 是否存在一次性捕捉到多个鱼
            //count = fishMonobehavior.count,
        };
        OnFishCaught?.Invoke(capturedFish);
        
        //内容信息管理
        FishDataManager.Instance.AddFish(capturedFish);
    }
    public override string GetToolName()
    {
        return "FishNet";
    }
}
